package com.woniuxy.classdeans.service;

import com.woniuxy.commons.entity.wyh.TeamCondition;
import com.woniuxy.commons.entity.wyh.TeamInfo;

import java.util.List;

/**
 * @author wangyanhui
 * @date 2020/7/17 - 12:01
 */
public interface TeamInfoService {
    //获取所有
    public List<TeamInfo> getall(Integer page,Integer size);

    //获取所有的记录条数
    public long getTotal();

    //根据条件查询班级信息
    public List<TeamInfo> getByCondition(TeamCondition condition, Integer page, Integer limit);

    //根据条件查询记录总数
    public long getCountByCondition(TeamCondition condition);

    //根据id获取班级信息
    public TeamInfo getByTeid(TeamInfo teamInfo);

    //根据id删除班级信息
    public int delByTeid(TeamInfo teamInfo);

    //根据id更新班级信息
    public int updateByTeid(TeamInfo teamInfo);

    //新增班级信息并返回
    public int add(TeamInfo teamInfo);

    //批量删除
    public int delBatch(String[] array);
}
